package org.surthi.app.bank.db.dvo;

import java.io.Serializable;

public class FixedDeposit implements Serializable {

	private Integer fixedDepositId;
	
	private String fixedDepositNumber;
	private Account account;
	private Double amount;
	private String fixedDepositStatus;
	public Integer getFixedDepositId() {
		return fixedDepositId;
	}
	public void setFixedDepositId(Integer fixedDepositId) {
		this.fixedDepositId = fixedDepositId;
	}
	public String getFixedDepositNumber() {
		return fixedDepositNumber;
	}
	public void setFixedDepositNumber(String fixedDepositNumber) {
		this.fixedDepositNumber = fixedDepositNumber;
	}
	public Account getAccount() {
		return account;
	}
	public void setAccount(Account account) {
		this.account = account;
	}
	public Double getAmount() {
		return amount;
	}
	public void setAmount(Double amount) {
		this.amount = amount;
	}
	public String getFixedDepositStatus() {
		return fixedDepositStatus;
	}
	public void setFixedDepositStatus(String fixedDepositStatus) {
		this.fixedDepositStatus = fixedDepositStatus;
	}
	@Override
	public boolean equals(Object object) {
		FixedDeposit fixedDeposit = null;
		if (object instanceof FixedDeposit){
			fixedDeposit = (FixedDeposit) object;
		}else{
			return false;
		}
		return this.fixedDepositId.equals(fixedDeposit.getFixedDepositId());
	}
	
}
